package com.huazhi.wzsnw.service.impl;

import com.huazhi.wzsnw.mapper.EarlyWarningMapper;
import com.huazhi.wzsnw.model.EarlyWarning;
import com.huazhi.wzsnw.service.EarlyWarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EarlyWarningServiceImpl implements EarlyWarningService {
    @Autowired
    private EarlyWarningMapper earlyWarningMapper;
    @Override
    public int save(EarlyWarning record) {
        return 0;
    }

    @Override
    public int delete(EarlyWarning record) {
        return 0;
    }

    @Override
    public int deletes(List<EarlyWarning> records) {
        return 0;
    }

    @Override
    public int update(EarlyWarning record) {
        earlyWarningMapper.updateByPrimaryKeySelective(record);
        return 0;
    }

    @Override
    public EarlyWarning findByTid(String tid) {
        EarlyWarning earlyWarning=earlyWarningMapper.selectByPrimaryKey(tid);
        return earlyWarning;
    }

    @Override
    public List<EarlyWarning> findPagingByListTid(List<String> stringList, Integer pageIndex, Integer pageSize) {
        return null;
    }

    @Override
    public List<EarlyWarning> findAll() {
        return earlyWarningMapper.selectAll();
    }
}
